using System;
using System.Windows.Forms;
using BizTalk.BuildGenerator.UI.Navigation;
using BizTalk.BuildGenerator.MetaData;

namespace BizTalk.BuildGenerator.UI.UserControls
{
    public partial class BuildPropertiesControl : UserControl, IWizardControl
    {
        private BuildProperties _buildProperties;

        public BuildPropertiesControl()
        {
            InitializeComponent();
        }


        public void RegisterBuildProperties(BuildProperties buildProperties)
        {
            _buildProperties = buildProperties;
            BuildPropertiesPropertyGrid.SelectedObject = _buildProperties;
        }

        private void ApplicationBindingsControlLoad(object sender, EventArgs e)
        {
            if (!DesignMode) return;            
        }

        #region IWizardControl Members

        public MoveNextResult MoveNext()
        {
            var result = new MoveNextResult {CanMoveNext = true};
            return result;
        }

        #endregion
    }
}